package com.foxmail.aroundme.youtubedemo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.foxmail.aroundme.youtubedemo.baseYouTube.BaseYouTube;
import com.foxmail.aroundme.youtubedemo.fmgIntoListView.FrgListViewAty;
import com.foxmail.aroundme.youtubedemo.fmgIntoRcyView.FrgRcyViewAty;
import com.foxmail.aroundme.youtubedemo.listview.ListViewAty;
import com.foxmail.aroundme.youtubedemo.recyclerview.RecyclerViewAty;

public class MainActivity extends Activity{

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.activity_main);

        findViewById(R.id.recyclerview).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, RecyclerViewAty.class));
            }
        });

        findViewById(R.id.listview).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, ListViewAty.class));
            }
        });

        findViewById(R.id.fragment_into_listview).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, FrgListViewAty.class));
            }
        });

        findViewById(R.id.fragment_into_recyclerview).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, FrgRcyViewAty.class));
            }
        });

        findViewById(R.id.base_recyclerview).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, BaseYouTube.class));
            }
        });

    }
}
